package com.bishi.demo.service;

import com.bishi.demo.pojo.FullDiscount;

public class FullDecService {

    public static Double FullDec(Double money, FullDiscount fullDiscount) {
        if (null== fullDiscount){
            return money;
        }
        money = fullDiscount.getFull_min() > money? money:money- fullDiscount.getFull_money();
        return money;
    }
}
